package com.danco.training.zaneuskaya.property;

public class PropertyAccess {

	
	
	private static final String TRUE_MESSAGE_IN_BOOLEAN_PROPERTY = "true";
	private static PropertyReader propertyReader = PropertyReader.getPropertyReaderInstance();
	
	
	public static String getProperty(String pr){
		return propertyReader.getProps().getProperty(pr);
	}
	
	public static int getIntProperty(String pr){
		return Integer.parseInt(getProperty(pr));
	}
	
	public static boolean getBooleanProperty(String pr){
		String res = getProperty(pr);
		return  res.equalsIgnoreCase(TRUE_MESSAGE_IN_BOOLEAN_PROPERTY);
	}
	
	
}
